<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    var data = [
      {
        a: '男',
        b: 18,
        c: '小明'
      },
      {
        a: '女',
        b: 18,
        c: '小红'
      },
      {
        a: '女',
        b: 19,
        c: '小花'
      }

    ]
    const data2 = data.map(el => {
      return {
        name: el.c,
        age: el.b,
        gender: el.a
      }
    })
    console.log(data2);
  </script>
</body>
</html>